<local:DocumentBase x:Class="WPFExcelReport.UBTPCAB50"
                    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:local="clr-namespace:ReflectionStudio.Components.UserControls;assembly=ReflectionStudio.Core" 
                    xmlns:ucd="clr-namespace:ReflectionStudio.Controls;assembly=ReflectionStudio.Controls"  
                    xmlns:VA="clr-namespace:WPFExcelReport;assembly=TVAART"
                    xmlns:VF="clr-namespace:WPFExcelReport;assembly=TVAFARBEN"
                    xmlns:GD="clr-namespace:WPFExcelReport;assembly=TGAAUF" 
                    xmlns:VKK="clr-namespace:WPFExcelReport;assembly=TVKKOPF" 
                    xmlns:VKP="clr-namespace:WPFExcelReport;assembly=TVKPOS" 
                    xmlns:WD="clr-namespace:WPFExcelReport;assembly=TWDECK" 
                    xmlns:WB="clr-namespace:WPFExcelReport;assembly=TWBDAT" 
                    xmlns:WBB="clr-namespace:WPFExcelReport;assembly=TWBBST" 
                    xmlns:AB="clr-namespace:WPFExcelReport;assembly=TABPOS" 
                    xmlns:BB="clr-namespace:WPFExcelReport;assembly=TBABST" 
                    xmlns:GB="clr-namespace:WPFExcelReport;assembly=TGLLG" 
                      xmlns:BD="clr-namespace:WPFExcelReport;assembly=TBAAUF"
                     xmlns:ex="clr-namespace:WPFExcelReport.Controls;assembly=ExControls"                    
                    xmlns:Localization="clr-namespace:Localization;assembly=Localization"  
                     xmlns:me="clr-namespace:WPFExcelReport"
                    Name="TV"
                    MinHeight="200"
                    MinWidth="200"
                   Loaded="Window_Loaded"
>
    <local:DocumentBase.Resources>
        <ucd:BoolToVisibilityConverter x:Key="bv"/>
        <ucd:NOTBoolToVisibilityConverter x:Key="nbv"/>
        <ucd:GB2312Convert8859P1  x:Key="gb2312"/>
        <ucd:NOTConverter x:Key="not"/>
    </local:DocumentBase.Resources>
    <Grid> 
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="Auto"></ColumnDefinition>
            <ColumnDefinition Width="1*"></ColumnDefinition>
            <ColumnDefinition Width="Auto"></ColumnDefinition>
        </Grid.ColumnDefinitions>
        <Expander Header="{Binding Source={Localization:Translate Word=计划}}" IsExpanded="False" Grid.Column="0">
            <Grid>
                <Grid.RowDefinitions>
                <RowDefinition   Height="1*" />
                <RowDefinition   Height="1*" />
                <RowDefinition   Height="1*" />
                <RowDefinition   Height="Auto" />
            </Grid.RowDefinitions>

                <WD:TRWD02  Grid.Row="0"  Grid.Column="0"  
                       Name="cWD02"  
                       AUFART="V"
                       ARTST="R"  
                       ABAUF ="{Binding ORDERNUM,ElementName=cAB55}"   
                       IsOrder="False"
                       IsVV="False"/>
                <WD:TDIWD02 Grid.Row="1"  Grid.Column="0" 
                     AUFART="V"
                     ARTST="R" 
                     WZTYP="{Binding WZTYP,ElementName=cWD02}"
                    ABAUF ="{Binding ORDERNUM,ElementName=cAB55}"   
                     EXAUF="{Binding PRART,ElementName=cWD02}" />
                <WD:TZPRWD02 Grid.Row="2"  Grid.Column="0" 
                     AUFART="V"
                     ARTST="R" 
                     WZTYP="{Binding WZTYP,ElementName=cWD02}"
                     ABAUF ="{Binding ORDERNUM,ElementName=cAB55}"  
                     ART="{Binding ART,ElementName=cWD02}"
                     FARBE="{Binding FARBE,ElementName=cWD02}"
                     KRS="{Binding KRS,ElementName=cWD02}"
                     LFD="{Binding LFD,ElementName=cWD02}"
                     POS="{Binding POS,ElementName=cWD02}"
                     IsQuery="{Binding IsQuery,ElementName=cWD02}" 
                     EXAUF="{Binding PRART,ElementName=cWD02}"
                     />
            </Grid>
        </Expander>
        <Grid Grid.Column="1">
            <Grid.RowDefinitions>
                <RowDefinition   Height="Auto" />
                <RowDefinition   Height="1*" />
                <RowDefinition   Height="Auto" />
            </Grid.RowDefinitions>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="1*"></ColumnDefinition>
                <ColumnDefinition Width="Auto"></ColumnDefinition>
            </Grid.ColumnDefinitions>
            <AB:TWAB55PR Grid.Row="1"  Grid.Column="0"  
                                   IsAuto="False"
                                   POSTYP="PR "
                                   Name="cAB55"   />
            <Grid Grid.Row="1" Grid.Column="1">
                <Grid.RowDefinitions>
                    <RowDefinition   Height="Auto" />
                    <RowDefinition   Height="200" />
                    <RowDefinition   Height="Auto" />
                    <RowDefinition   Height="1*" />
                </Grid.RowDefinitions>
                <BD:TBD02  Grid.Row="0"  
                               Name="cBD02"
                               EXAUF="{Binding KEY,ElementName=cAB55}"/>
                <BB:TBZ02 Grid.Row="1"
                          EXAUF="{Binding ElementName=cBD02, Path=WARP}" />
             
                <GD:TGD733  Grid.Row="2"
                                Name="cGD"
                                EXAUF="{Binding KEY,ElementName=cAB55}"
                                />
                <Grid Grid.Row="3">
                    <Grid.RowDefinitions>
                        <RowDefinition   Height="Auto" />
                        <RowDefinition   Height="1*" />
                    </Grid.RowDefinitions>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="1*"></ColumnDefinition>
                        <ColumnDefinition Width="Auto"></ColumnDefinition>
                        <ColumnDefinition Width="1*"></ColumnDefinition>
                    </Grid.ColumnDefinitions>
                    <GB:TGLLG   Grid.Row="0" Grid.Column="0" Grid.RowSpan="2"
                    VerticalAlignment="Top"
                    dwReq="{Binding dwGD,ElementName=cYGA}"
                   dwGD="{Binding dwGD,ElementName=cGD}"
                            />
                    <GD:YARNA     Grid.Row="0" Grid.Column="1"  Grid.RowSpan="2"
                          FTAUTOSUM="True"
                          SKEY1="GAART"
                          KEY1="QFREE"
                                  LMMU="N"
                         Name="cYGA"  VerticalAlignment="Top"
                        dwReq="{Binding dwGD,ElementName=cYGD}"            
                    />
                    <Grid  Grid.Row="0" Grid.Column="2"  Grid.RowSpan="2">
                        <Grid.RowDefinitions>
                            <RowDefinition   Height="1*" />
                            <RowDefinition   Height="1*" />
                        </Grid.RowDefinitions>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="1*"></ColumnDefinition>
                            <ColumnDefinition Width="1*"></ColumnDefinition>
                        </Grid.ColumnDefinitions>

                        <GD:Y3TGAAUF Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="2"
                          Name="cYGD"
                          EXTMU="SM"
                          dwReq="{Binding dwGD,ElementName=cGD}"
                          POSTYP="{Binding POSTYP,ElementName=cGD}"  />
                        <GD:XZUTEI   Grid.Row="1" Grid.Column="0"  
                                 Name="cZU" VerticalAlignment="Top"
                                dwReq="{Binding dwGD,ElementName=cYGA}"            
                            />
                        <GD:XGAAUF   Grid.Row="1" Grid.Column="1" 
                             Name="cXGD"  VerticalAlignment="Top"
                            dwReq="{Binding dwGD,ElementName=cYGA}"            
                        />
                    </Grid>
                </Grid>
            </Grid>
           

            <Expander Grid.Row="2">
                <Expander.Header>
                    <WrapPanel>
                        <TextBlock Text="{Binding Source={Localization:Translate Word=布卷}}"/>
                    </WrapPanel>
                </Expander.Header>
                <StackPanel>
                    <WB:TSHWB04 Name="cWB04"
                            EXAUF="{Binding ABAUF,ElementName=cAB55}"/>
                    <WBB:TWVWB25  
                            RWAUF="{Binding KEY,ElementName=cWB04}"/>
                   
                </StackPanel>
            </Expander>
        </Grid> 
     
    </Grid>
</local:DocumentBase>
    
